import Cfg from '@/common/config.js'
import Msg from '@/common/message.js'
import Net from '@/common/request.js'
import Nav from '@/common/navigation.js'
import Tp from '@/common/image-tools.js'
import Lang from '@/common/extend.js'


import App from './App'

// 此处为引用自定义顶部
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom);
import TnCustom from './components/TnCustom/TnCustom.vue'
Vue.component('tn-custom', TnCustom)


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

Vue.prototype.$goPage = function(route){
	uni.navigateTo({
		url: route
	})
}
Vue.prototype.$goTabberPage = function(route){
	uni.switchTab({
		url: route
	})
}

Vue.prototype.Cfg = Cfg;//配置相关
Vue.prototype.Msg = Msg;//提示相关
Vue.prototype.Net = Net;//网络相关
Vue.prototype.Nav = Nav;//页面切换相关
Vue.prototype.Tp = Tp;	//图片工具
Vue.prototype.Lang = Lang;	//语言切换


App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif